package com.rgs.springboot.logger.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author RenGaoshuai
 * @date 2024/6/19 14:53
 * @description
 */
@RequestMapping("/test")
@RestController
@Slf4j
public class TestLoggerController {

    @GetMapping("/logger")
    public String testSayHello(){
        log.info("这里是我的info日志");
        log.debug("这里是我的debug日志");
        log.error("这里是我的error日志");
        return "logger";
    }
}
